package com.jqq.spring.mapper;

import com.jqq.spring.pojo.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

/**
 * @author 姬倩倩
 * @date 2023-05-18
 */
public class UserMapperImpl2 extends SqlSessionDaoSupport implements UserMapper{
    @Override
    public List<User> getAllUser() {
//        SqlSession sqlSession = getSqlSession();
        return getSqlSession().getMapper(UserMapper.class).getAllUser();
    }
}
